public class CloneTest implements Cloneable {
    private double pi = 7.1433232;

    public static void main(String[] args) throws CloneNotSupportedException {
        CloneTest obj1 = new CloneTest();
        CloneTest obj2 = (CloneTest) obj1.clone();
        obj1.pi = 7333333;
        System.out.println(obj1.pi);
        System.out.println(obj2.pi);
    }
}
